package com.tom.mapper;

import com.tom.pojo.HeiZaiOrder;

import java.util.List;

public interface HeiZaiOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HeiZaiOrder record);

    int insertSelective(HeiZaiOrder record);

    HeiZaiOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HeiZaiOrder record);

    int updateByPrimaryKey(HeiZaiOrder record);

    HeiZaiOrder selectByOrderId(String orderId);

    List<HeiZaiOrder> selectByUserId(Integer userId);

    List<HeiZaiOrder> selectByRestaurantId(Integer restId);

    List<HeiZaiOrder> selectCompletedByRestaurantId(HeiZaiOrder record);

    List<HeiZaiOrder> selectLatestByRestaurantId(HeiZaiOrder record);
}